<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'editClient_main.jsp' starting page</title>
    
	<META HTTP-EQUIV="pragma" CONTENT="no-cache"> 
	<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> 
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css"
			href="js/ext/resources/css/ext-all.css" />
		<script type="text/javascript" src="js/ext/adapter/ext/ext-base.js"></script>
		<script type="text/javascript" src="js/ext/ext-all.js"></script>
	<link rel="stylesheet" type="text/css" href="css/left_tabmenu.css">
	<script type="text/javascript" src="js/showmenu.js"></script>
	<style type="text/css">
	.input_160{
	BORDER-RIGHT: gray 1px solid;
	BORDER-TOP: gray 1px solid;
	BORDER-LEFT: gray 1px solid;
	BORDER-BOTTOM: gray 1px solid;
	FONT-FAMILY: verdana;
	BACKGROUND-COLOR: window;
	width:160;
	height:20;
	}
	.item{text-align:right;}
	.content{text-align:left;}
	</style>
	<script type="text/javascript">
	Ext.onReady(function() {
	var md1 = new Ext.form.DateField( {
		applyTo : 'birthday',
		width : "20%",
		format : 'Y-m-d'
	});
	var md2 = new Ext.form.DateField( {
		applyTo : 'engaged_time',
		width : "10%",
		format : 'Y-m-d'
	});
});
	</script>
  </head>
 <body>
 <table width="100%" height="100%">
 <tr><td height="20%">
<div id="top">
<table  width="100%">
<tr><td><jsp:include page="../top.jsp" flush="true"></jsp:include></td></tr>
</table>
</div>
</td></tr>
<!--
<hr   size= "1 "   noshade   style= "color:#BCD2EE;   border-style:dotted; "> 
-->
<tr><td height="70%" style="vertical-align:top;">
<div id="main">
<table width="100%" height="100%">
<tr>
<td width="20%" height="500" style="vertical-align:top;border-right:4px #65aaef solid;">
<div id="nav">  
  <div class="title1" id="menu1" onclick="showmenu('1') ">→基本信息</div>
  <div id="list1" class="content" style="display:block">
       <ul>
<li><a href="customer/addGeneral.do?custId=${CustInfo.custId}&isView=1">- 概况</a></li>
<li><a href="view/customer/Customer_Address.jsp">- 地址</a></li>
<li><a href="customer/addOperation.do?custId=${CustInfo.custId}&isView=1">- 经营情况</a></li>
<li><a href="dispatch.do?type=Cust_Management&custId=${custId}">- 管理层情况</a></li>
<li><a href="dispatch.do?type=Cust_Overview&custId=${custId}">- 总览</a></li> 
    </ul>
  </div> 
  <div class="title" id="menu2" onclick="showmenu('2')"><a href="view/customer/AddCustomer_ReportList.jsp" style="text-decoration: none;color:#fff;">→财务信息</a></div>
  <div id="list2" class="content" style="display:none">
    <ul>
    </ul>
  </div> 
<div class="title" id="menu3" onclick="showmenu('3')">→集团客户信息</div>
  <div id="list3" class="content" style="display:none">
    <ul>
<li><a href="#" title="">- 成员信息</a></li>
<li><a href="#" title="">- 集团信息</a></li>
    </ul>
  </div> 
  <div class="title" id="menu4" onclick="showmenu('4')">→银企合作信息</div>
  <div id="list4" class="content" style="display:none">
    <ul>
<li><a href="dispatch.do?type=Cust_Inner&custId=${custId}">- 我行存贷款信息</a></li>
<li><a href="dispatch.do?type=Cust_Outer&custId=${custId}">- 他行存贷款信息</a></li>
<li><a href="dispatch.do?type=Cust_Guarantee&custId=${custId}">- 担保信息</a></li>
    </ul>
  </div> 
    <div class="title" id="menu5" onclick="showmenu('5')">→历史评级信息</div>  
    <div id="list5" class="content" style="display:none">
    <ul>
<li><a href="view/customer/Customer_ExtratRating.jsp">- 外部评级</a></li>
    </ul>
  </div> 
 <div class="title" id="menu2" onclick="showmenu('2')"><a href="dispatch.do?type=Cust_Report&custId=${custId}" style="text-decoration: none;color:#fff;">→财务信息</a></div>
</div>
</td>
<td width="80%" height="100%" style="vertical-align:top" id="right_frame">
<div id="position" align="left">
			<font size="2">当前位置： <a href="" style="text-decoration: none;">首页</a>&gt;&gt;客户管理&gt;&gt;新增客户</font>
		</div>
		<hr />
		<br/>
		<div align="left">
			<img src="images/edit.png" alt="" width="24" height="24"/>
			<font size="2">管理层情况</font>
		</div>
		<hr />
<br/>
<form action="customer/saveManager.do" method="post">
<table width="100%">
<tr><td>
<table width="100%" align="center" cellpadding="2" cellspacing="2" bgcolor="#DDDDDD" id="addr_sum">
<tr bgcolor="#F3F3F3">
<td width="6%">高管姓名</td>
<td>职务</td>
<td>性别</td>
<td>生日</td>
<td>国籍</td>
<td>学历</td>
<td>证件类型</td>
<td>证件号码</td>
<td>电话</td>
<td>手机号码</td>
<td>传真</td>
<td>电子邮箱</td>
<td>从业起始时间</td>
<td>选择</td>
</tr>

<c:forEach var ="cm" items="${custManagerList}">
<tr>
<td><c:out value="${cm.managerName}"></c:out></td>
<td><c:out value="${DataDictionary['Position'][cm.position]}"></c:out></td>
<td><c:out value="${DataDictionary['SexType'][cm.sexType]}"></c:out></td>
<td><c:out value="${cm.birthday}"></c:out></td>
<td><c:out value="${Country[cm.nationality]}"></c:out></td>
<td><c:out value="${DataDictionary['Education'][cm.education]}"></c:out></td>
<td><c:out value="${DataDictionary['CertType'][cm.idtype]}"></c:out></td>
<td><c:out value="${cm.managerId}"></c:out></td>
<td><c:out value="${cm.telNo}"></c:out></td>
<td><c:out value="${cm.cellNo}"></c:out></td>
<td><c:out value="${cm.faxNo}"></c:out></td>
<td><c:out value="${cm.email}"></c:out></td>
<td><c:out value="${cm.workStart}"></c:out></td>
<td><input type="checkbox" name="selectManager" checked="checked" value="${cm.serialNo}"/></td>
</tr>
</c:forEach>
</table>
</td></tr>
<tr><td width="100%"><table style="margin: auto;width:20%;"><tr><td id="save"><br></td>
<td height="50"><input type="submit" value="保存"></td>
<td><br></td><td height="50"><input type="reset" value="取消"></td>
<td id="delete"></td></tr></table></td></tr>
</form>
<tr><td width="100%" height="50"><hr   size= "1 "   noshade   style= "color:#000;border-style:dotted; "></td></tr>
<tr><td width="100%">
<form action="customer/addManager.do" method="post">
<table width="80%"  border="0" cellpadding="5" cellspacing="5">
<tr bgcolor="#FFFFFF">
<td class="item">高管姓名</td>
<td class="content"><input name="managerName" type="text" class="input_160">
*</td>
<td class="item">职务</td>
<td class="content">
<select name="position" class="select">
<c:forEach var="entry" items="${DataDictionary['Position']}">
   <option value="<c:out value="${entry.key}" />"><c:out value="${entry.value}" /></option>
     </c:forEach>
     </select>
* </td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="item">性别</td>
<td class="content">
<select name="sex" class="select">
	 <c:forEach var="entry" items="${DataDictionary['SexType']}">
  	 <option value="<c:out value="${entry.key}" />"><c:out value="${entry.value}" /></option>
     </c:forEach>
     </select>
</td>
<td class="item">生日</td>
<td class="content"><input name="birthday" type="text" id="birthday">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="item">国籍</td>
<td class="content">
<select name="nationality" class="select">
<option value="142" selected>中华人民共和国</option>
	 <c:forEach var="entry" items="${Country}">
  	 <option value="<c:out value="${entry.key}" />"><c:out value="${entry.value}" /></option>
     </c:forEach>
     </select>
</td>
<td class="item" >学历</td>
<td class="content">
<select name="education" class="select">
<c:forEach var="entry" items="${DataDictionary['Education']}">
   <option value="<c:out value="${entry.key}" />"><c:out value="${entry.value}" /></option>
     </c:forEach>
     </select>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="item">证件类型</td>
<td class="content">
<select name="idtype" class="select">
<c:forEach var="entry" items="${DataDictionary['CertType']}">
   <option value="<c:out value="${entry.key}" />"><c:out value="${entry.value}" /></option>
     </c:forEach>
     </select>
* </td>
<td class="item">证件号码</td>
<td class="content"><input name="managerId" type="text" class="input_160">
*</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="item">电话</td>
<td class="content"><input name="telNo" type="text" class="input_160">
</td>
<td class="item">手机号码</td>
<td class="content"><input name="cellNo" type="text" class="input_160">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="item">传真</td>
<td class="content"><input name="faxNo" type="text" class="input_160">
</td>
<td class="item">电子邮箱</td>
<td class="content"><input name="email" type="text" class="input_160">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="item">从业时间</td>
<td class="content"><input name="workStart" type="text" id="engaged_time">
</td>
<td>&nbsp;</td><td>&nbsp;<input type="hidden" name="custId" value="${custId}"/></td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF" colspan="4" style="text-align: center;height:40;"><input type="submit" value="添加">&nbsp;&nbsp;<input type="reset" value="取消"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr><td height="20"></td></tr>
<tr><td width="100%" style="text-align:center;"><table width="20%" style="margin: auto;"><tr><td id="add"></td><td></td><td id="reset"></td></tr></table></td></tr>
</table>
</td>
</tr>
</table>
</div>
</td></tr>
<!--<hr   size= "1 "   noshade   style= "color:#BCD2EE;   border-style:dotted; "> 
-->
<tr><td height="10%" style="vertical-align:bottom;">
<div id="footer">
<table  width="100%">
<tr><td style="vertical-align:bottom;text-align:center;"><jsp:include page="../bottom.jsp"></jsp:include></td></tr>
</table>
</div>
</td></tr>
</table>
  </body>
</html>
